Fix bug 'cannot add multi platforms'.

Pull Request for #3.