fix fb function