Fixed rendering code, changed something I don't remember (as usual)