Fix type declaration