fix undefined texts popping up