fixed a potential ASI bug regarding immediate invocation functions