Fixes warning from enums