Removed bug in provider