tried to fix overlay rendering issue on Firefox