Action not working when referring the device itself