[bug] Using code resource instead of command