edit fixed for multiple categories