fix for display hidden css bug