removed the device call causing undefined

Should have fixed it, was "maxvalue" call from credsticks