Merge pull request #1316 from nabinhait/hotfix

rounding and divisional loss