Fixed precondition failed in #95
Merge pull request #109 from F21/precondition_issue

Fixed precondition failed in #95