Removed redundant condition from gradient aligner