fixed wrong mask and agents loading