fix pointer mispointering