Bug fix with ERR_SEGDATA