God dammit. That bug took me ages to fix. Sorry guys. Added more and more comments