Fixed a couple of bugs

Why doesn't my Deque work? ):