fix joi ref