Error: syntax error, unexpected ')', expecting $end