undefined returned in getters for last and first property