Missed update of return value