fix a fex missing casts