Fixing type signature