Fix details function