fixd some bug in log and fraction add()