erasure code profile: fix bugs found while testing manually