Fix stupid memory error