bug-fix if no cal file defined