Fixed bug which was preventing pages displaying