Fix assigned wrong directory