fixed a copy and paste error in constructor