fix getting fields