fix for vidigami#6 - related queries on paging