Fixes typo in locked to publish validation