fix bug in show more messages functionality