fixed unexpected identifier bug