Fix program counter overflow bug in RTS