[MRG] fix to a minor bug with intercept

This will fix #3769