Fix indentation, length check
Merge pull request #1 from passy/patch-1

Fix indentation, length check