Fix type stack