clear temp variable containing the last activity type, fix #274