fixed diff not being checked right