Fixed a bug with enemy attacks