Fixed errors with wrong blocking period counting