Fix for FF and IE