some functions were called twice, hopefully fixed that

Author git <vivec@telvanni.eu>
Author date 2018-02-10 16:52:07
Author local date 2018-02-10 17:52:07 +0100
Committer git <vivec@telvanni.eu>
Committer date 2018-02-10 16:52:07
Committer local date 2018-02-10 17:52:07 +0100
Commit 75918dd3a57adfa0458846facf94b79262908683
Tree 469e0d087a05a35d1e7b12c16ff66cbdfd6f5837
Parent 71acfc0a4982fbcef62d1375f91c588e0decd060
some functions were called twice, hopefully fixed that