fixed bugs in content provider