Fix some problems about the position and the size