Fixed scoping issue in previous commit