Small bug fix in initialzing class adapter