wrong directory check