fixed class cast exception -- IDs were retrieved as Double.