Fixed "--new" bug