Fixing expect error value