Hopefully fixed everything, wrong pointers