SHA1 now generated correctly when data form included in caps

fixes #149