resolved some errors #267