Added binding clears to zero when resource not in use. Affects #56.