added flags fix display