Fix annoying error on error