scroll and encoding fix