fix for boolean flag