fix commit when still focus