should fix an IllegalArgumentException