better fix for (nil) is not an 'error'