fixed second bug with parameter value -1