crypto-007: week 4 solution bugfixes