try to fix the type mismatch issue