Check if input values are negative, change to positive in that case