Fix for issue #283 "ClassCastException in StatsActivity.java"

Fix for issue #283