remove unused variable in Decode, fix error with cycle count