Random patches that fixes the problems I face in various stuff