Fix for Firefox rendering issues