CRUISE: Add some more safeguard in opcode functions