fixed reference to m.table that caused functions to not run