fixed break for slash
fixed bug when name is empty