Fixed save when name doesn't contain the extension