added bug documentation and fixed binding function