Bug fix for dashboard with php 5.3