fix AppError calls