Fixing reference to tk