Fixed bug skipping last entry in chart