Bug fix attempts and debugging