not proud of this fix but it works logically