Fixed minor bugs in the last update.