fixed #110. still needs to be tested on mobile though