fixes #17

still not the best solution but hey, whadayagonnado