fixed crashes on maps

should work whether you got items in log or not, fixed crash on logitems
onclick