Fix binding loop and null access.