Fixed compilation for the printing and viewing facilities