made Binder thread-safe and fixed Buffer bug