Fixed minor bugs in cycling