selfcal file bugfixes