Object reference error on clicking the Restore tab