THFrame Error fix