Fix fade in/out animation