Correcting firmware write and read functions behavior.