fix bug where expanding properties onclick is not delegated