Fix wrong use of get function