fixed a quick bug with chreg