Fixed callback never being called on sync