alan fixed a command cache bug