Fixed errors in chrome