Fix the bug related to the shell limits.