Fix wrong e.type