fix bug with undefined index values
2.0.10