Fixed message displaying bug