fix browser issues and debug