fixed missing return on provider