Fixes a potential type