Tried to add another try-catch to fix preview issue