fix error and remove log