fix the frond end exception