Fix transition issue in chrome