Fixes missing directory error