Still clueless why this bug happens