Fix wrong type declaration