fix wrong logic for post message, i will merge it back later