Sytnax error: Missing } at the end