Fixed raising nonexistant error issue