fixed retarded cast bug