Fixed keyboard focus bug