This is really ugly hack, but works.