Label:fixed wrong logic of alignment.
Merge pull request #30 from Dhilan007/iss4660

Label:fixed wrong logic of alignment.