Fixed error checking issue.