Made triggers work in the map edtior