log some variables in console to detect problem