fix kernel branch compare