ensure proper list checking, fixed #67