Bug fixes

-Dlg has some events wrongly wired
-Mapper confuses Rem with Div