Fix bug and rebuild static version