Fix for building in Release mode