bug fixes: mx functions