Fix cap file