fixed syntax error in lines 4 and 59

before these changes, there are a few syntax errors that get reported:
 59: [: 1: unexpected operator
and
  4: [: 0: unexpected operator