fixed initialization bug when features passed