Changed sync.error always redirect #/error/