fixed small bugs, clear dimens