Fixed FSM using wrong bitWidth for keys/values