fixed wrong type in 'edit by id' feature