Fixed resize bug
Fixed internal bug. Placed 'var' in front of local variables. ;)
Fixed data manager bug