fix tear bug