Fixing error in debug