attempts to solve this fucking bug