fix bug that limits resources to 1. [Closes #3]