fixing getCategory for details