fixed bug when creating new res.tab