Fixed ratio if statements.
More ratio if fixes.