fixed resizing up issue
Solve boundary overflow problem