Fixed assertion error for incomplete code.