Fix for broken mf_inv_empty. all works as it should now