Fixed warning passing nil in place of an enum value