Generic bug fix and improved __check_actions_in_data method.