Revert "fixing infinite loop on native methods invocation"

This reverts commit 96603cb77f1b51e80320c028ce9b46bc5a64881e.
fixing infinite loop on native methods invocation