Do safe constructor check before converting flags

Closes #1