Fixed problem with Release builds calling a method only present in debug.