Swap flag and remove extra log line