Fix: return error value