fixed bug whereby draft versions of pages would be indexed