[FIX] umbrella bugs report by hman
I looked at all the files reported by hman then I checked if it really is a bug in the code. Most of the bugs were already fixed by other developers. So I went through all the files hoping to find what remains undebugged and I found some files to correct.