Fixes some noob-ass coding by me