Fix some chrome api issues