fix error capfile