Fetching wrong attribute keys