functionbind.cpp has bugs