megatools: fix