Fixed non-debug build error

This allows builds for versions other than debug. (was a bug)