fix line position dynamically

I've fixed the line position.
![diff](https://f.cloud.github.com/assets/6205247/2482050/19cb69fe-b0e5-11e3-959b-5f0855278d2e.png)