fixed issue : moved block handler after the end of animations