fix command mode drawing