Fixed bug that allowed stacking entities