fix subroutine pointer