try to fix __repr__ returning NoneType