fixed #558, fixed #556
Merge branch 'master' of https://github.com/KoffeinFlummi/AGM