Fix type key reference