Fixing more bugs

Fixed some more bugs. I left the render state/effect renderer thing still for you. Found enough other issues. ;-)