Class cast exception for _id issue