Accept function fix