fixed NLS warnings