An infinite loop caused because of two getters?