bug fixed on css for fade transitions