Fixed some errors to build package