fix nested dollar