removed unnecessary code witch caused a racing condition (#145)