01.01.2017, 16:09
Looking at your code, it seems fine to me, at least for the errors you've provided. You might have a symbol missed somewhere near the code of this command.
PS: Indent your code more.
PS: Indent your code more.