HORRIBLE BUG DEBUGGING