fix for flagPuff