fixed compile error /wrong type