Fixed Peek Bug

Program would crash when peeking due to lack of checking for a connection.