Finally fixed the bug...