Removed bug in db