Small fixes for gadget detection