fixed null pointer for series