fixed faulty logic... again.