Fixed a bug which would crash when assigning to a new quad.