fixed broken pointer