Fixed return value of accept()