Fixed the issue of first node going out of screen