fixed bug in scaffold widget