fix to offset in firefox