fixes bug in the result values