fixed bug when viewing newly created contracts