fixed bug. lastmeta data may be null in certain cases