fixed Undefined variable in expression: _mylastpos