fix categories direction