*ap: Fixed indexoutofbounds-exception
*EntityList: Fixed unlock()