Fix minor bug to make JSHint happy