bugfix #138 window.location into trigger from model