Class user (bug in base model)

$collection = $this->database->selectCollection($collection);
error when use register view (/home/register), but normal when use index
view (/home/index)