Removing annoying opacity transition bug