Fixing bad type