Fixed wrong flags