fixed #35 change flag manually set