fixed some bugs on studo