fix for incorrect pointer