Fix for bug when there are multiple document requirements