fixes small bug in last release, still crashes if button clicked