Fixed bug in css fade