fix capfile