Assembly parts does not stop at contact.

hello guys,

I have an issues with an assembly when part A rotates and it does not stop at contact with part B. I tried the "stop at collision" feature and it work ok,but when I exit it doesnt work anymore.Any help will be gladly appreciated. 

SolidworksGeneral