Fix rendering issues in firefox