Fix styles caret error, and autofocus error