fixes #37

Credit for solution belongs @DanijelHuis