Fixed logic bug
Auto-merge | Integrating changes from apache/master