fixed missing cast