Added cathers to be sure it won't crash