Changed error id generation