fix for NULL strings