always detach before render