Fix bug [ bug #881 ] some errors