issue #618 , small fix done to solvve this issue, but this problem has to be looked in depth