try fixing #30

seems to fix it… not sure if it's correct.