Try to fix unexpected token } error