small bitmask fix in patch::getMode