fix error with editing and deleting solutions