Fix minor error in registerEntity

Missing "2".