try to fix undefined $ error