Removed the redundant path check, that messed the creation.