fixed empty flag