fixed bug in ARS when pdf is flat in an interval