Fixing bug with requirements being inserted before existing