input ref wrong