fix cast