Holy SHIT stupid logic error.
Polishing.