Fix #575 - CSS hack instead of detach