Fixed bug in ResourceOptions