fixed issue with runaway sprite count