bugs removed

there was error in main.js .. it was creating an exception when opr4 was 0