Collapse Safari bug fix.

Signed-off-by: Zann St Pierre <mail@zann.com.au>