Fix improper use of $Error[0]