fixed last assertion error