fixed: not working without firstNode