fixed dereferenced pointer from non-existent method