If the limit switch is suspected or determined to be smashed, it must be checked/replaced.
Download and read the File:Replacing a limit switch.pdf file. It contains all necessary physical and electrical information.