minor fix on messages scope
try to fix bug
try to fix post message error