fix callback on constructor