be graceful if the id is nil