fix end line