Fixed really silly memory bug