Fixed sprite zero hit flag and several other bugs