Fix dashboard scripts bug