Array value changing with change in base interval

Please consider the below code

timeIntervalOfParentPattern=5 * in1minute;
TimeFrameSet( timeIntervalOfParentPattern ); 
patternFound_Parent =  findPattern( );            

 PFParentExpanded = TimeFrameExpand( patternFound_Parent, timeIntervalOfParentPattern);

Filter = 1;
AddColumn( PFParentExpanded, "PFParentExpanded" );

In analysis settings when i set periodicity to 5 minutes PFParentExpanded appears as expected in exploration. But if i set the periodicity to 1 minute the array value is 0. How do i troubleshoot this?

To get better understanding of what is happening in your code and how functions work, use advice given here: How do I debug my formula?