fixed wrong fix in handling of subroutine results