fixed issue #515 & #514

loan product
Merge pull request #522 from safiyu/newissue

fixed issue #515 & #514