Fix delete directory
Fix for the previous commit, tab might be None