Fixed errors with estimation