fixed some typesystem errors which caused the eventmanager to be not
functional