Minor fix for endtime

End of animation shall be after endtime is reached.