Fixed bug not detecting pid command