Simplified the code. Still the same bug.
Removed color. Bug is still there.