correct fade in/out animation