FINALLY FIXED THE PROBLEM