it's not a bad idea to refresh at least TRIS register while your program is running. ... at least for safety sake.