Fixed problem with transitions on load