fixes #5 Patch not updating

This was fixed before but there was one missing variable assignment.