fixed some out of memory exeptions
Merge branch 'master' of https://github.com/magnuskiro/progArk