Still trying to find the bug