Fix on pinMode in instantiation