Alternative way of setting parameter annotation avoiding bug