require page to be trashed before deleted. Fix bad ref in query.