Fixing a bug of collision at left border