Fixing unexpected end error.