fix a bug for fadeOut function