Fixed bug with leapClassTemplate