fixed a bug with adding subjects