removed the assertion
Merge pull request #1007 from yilongli/quick-fix-for-issue-985

fixing issue 985