Fixed calls to hermes lib to work correctly with all depths