replaced traces with FlxG.log.error