dont crash on activating a directory