max messages limit, fix system: null error