fix nil error try in service partial