Update attempt to fix seg fault

Signed-off-by: Michael Barton <mail@michaelbarton.me.uk>