Fixed crash when remote button toggled.