fix error in non-debug builds