Fixed malte bugs.