correct the CURRENT_STATUS var reading with function ReadCurrentStatus