Added better assertion error