Fix smooth animation