fix serializer can not handle dir not exsists