Fix pointer derefencing