fixed crash (this was commented out as part of a coverity fix)