bug with patron editing class and losing repo