Fixed AppProvider to pass down all required parameters.