fixed npe
work around for message scroll bug