Restore command state after justifying

Could be caused by a Chrome 38 change