fixed fade-out to be actually smooth