Fix crashing bug and increment version number