fixed minor bug with grab command