fixed error in get() method