fixed mkdir for results bug