attempting to convert nulls to int