Fixed safety score logic

PLLLLEASSE REVIEWW!