Fixed problem with error always showing.