Fixed a bug related to --resource-timeout option