fixed error in chrome