Update Collection

Fix error from undefined variable upon throwing an exception.