Fix bookmarklet errors