Workaround to prevent double callback.