fixed some types error