Dynamic spawn fix and food charges fix

fixes dynamic spawning, and food charges showing -1.
fixes #266