Solved memmory-access problems