Add debug log, render fix