fix applycal