Fixes problem when checking for flags of ordered product