Fix minor bugs, event issues

Fixed several undefined access bugs across the modules.
Also fixed event triggering from vips module and aways module that
was causing chat messaging issues.