bugfixed: passed correct arguments to events
R file bug fixed