Fix the undefined offset error and update Zephir