Logic fixed!