fix #if records dir is not exists