fix error and remove useless files