Some bugfix + autoscroll after compiling