Fixed pCharts rendering plus other bug fixes