Minor Logic Fix

Found a little error. Its fixed.