fixed bug with old browsers suport