Fixed a bug causing new players to crash when collecting ressources