Could be a glitch yes. But be careful when using cheats. Don't use them too often, as that could break the game. Cheats can also be destructive.
Next to that i would recommend to use Twallan's Overwatch mod. Overwatch cleans perodically the game of errors and junk that is caused during gaming.