Fix cyclicDecode and update GUI