fix show only deprecated message when exceeds limit