Bug fix

Re copied and pasted to fix bug