fix issue with empty [m