Fixed an issue concerning duplicate rows returned in the dynamic fetch