error on negative resize values