doesn't melted grab the terminal by default ?
shouldn't this be:
sh -c "${MELTED} &" (or something like that ?)