Fixed error raising.