setFlag bug fixed
logical flip in modnotset -> modset