Fixed elem and interrupt problem. (Anthony)