fix wrong type declaration