Cleaned up and fixed blank page errors