fixes fortmating bug