fixed bug with safari