Fix server problem with creating folder. However there is problem with $q.all