Finally fixed ram issue.
I'm 100% sure it had to do with the getRegistered() method.