fix on flags