fixing flag