solved the problem of empty messages