Fix issue #8, thank you elmindreda!