Fix some flags