Fixed small syntax error (and added message log)