fix failures if file is broken