fixed errors in grabber.cpp