fix conditional display initial state