fixed bug caused by bug fix that is now confusing me as to how it works