fixed type-os on 'lastEvent' that were preventing function of app