fix #68 required flags are rendered incorrect