Trying to find the bug