Some terrible pieces of code I wrote fixed (I must have been out of my mind or somnething...:))