Corrected assertion errors