Fixed bug when align frames restarts
Fixed bug when align frames restarts