Was using direct value instead of enum.