Fixed Unity bug.

REDO THIS LATER.