Fixed the getAttributes and getNodes so they return values properly