Fix bad aliasing bug in GetCommand()