minor fixes frappe/erpnext#1714
Merge pull request #565 from nabinhait/v4-hotfix

minor fixes