fix clientframe nullpointer execpt