fixed msg reading not working