Fix a stack, although i dont really understand it