Fixed broken program running from the enviroment on TRIK