Fixed startup script to deal with pointer and Chrome restore