dashboard code fix