i_cenovMicrochip said that MPLAB X 5.10 will have this bug removed. Even, they released a patch for 5.05.I am now with 5.10 and fortunately did not encounter this bug (yet).