fixing grid display bug in firefox