Fixed bug where last frame wasn't called