Remove useless callback and fix a preference problem