Nopng not working correctly