better Firefox compatibility