Fixed problems with the limit switches not stopping motion