use caption package and not caption2 which is deprecated