Fix some resetting on webkit browsers