Fixed bug caused by empty active_data.