Dealing with a wierd bug