fix for ff and safari