fix some troubles with new latex compiler