godbg: fix logic from refactoring