Remove superfluous set in get function