Workaround for getCurrentMessage problem, reported by Roman