fixed ouput dir issue