fixing malformed slim