Attach/detach interrupt Problem