Fix positioning issues with Firefox