Fixing main function in interpreter