hopefully fixed bug in bind(). The argument declaration for obj was missing