removed errors in pdf printing