fixed #126, used || intead of && for checking div and mod types