Fixed a dirs bug for catimg