Bug went away magically with debugging