Fix the error that lua binding for create function of Sequence would lead to endless loop