fixing wrong type